package module.items.module1 
{
	import flash.events.MouseEvent;
	import org.osflash.signals.natives.sets.InteractiveObjectSignalSet;
	import org.robotlegs.xxl.modular.base.ModuleContextSignal;
	import org.robotlegs.xxl.mvcs.Mediator;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class Module1ViewMediator extends Mediator 
	{
		
		[Inject]
		public var view:Module1View;
		
		override public function onRegister():void 
		{
			super.onRegister();
			
			(new InteractiveObjectSignalSet(view)).click.add(click);
		}
		
		private function click(e:MouseEvent):void 
		{
			this.view.parent.removeChild(this.view);
		}
		
	}

}